<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output indent="yes"/>

    <xsl:template match="/INDEXSET">
        <quotes>
            <xsl:apply-templates select="QUOTE"/>
        </quotes>
    </xsl:template>
    
    <xsl:template match="QUOTE">
        <xsl:element name="quote">
            <xsl:attribute name="companyname"><xsl:value-of select="COMPANYNAME/text()"/></xsl:attribute>
            <xsl:attribute name="exchange"><xsl:value-of select="EXCHANGE/text()"/></xsl:attribute>
            <xsl:attribute name="symbol"><xsl:value-of select="SYMBOL/text()"/></xsl:attribute>
            <xsl:attribute name="lasttrade"><xsl:value-of select="LASTTRADE/text()"/></xsl:attribute>
            <xsl:attribute name="change"><xsl:value-of select="CHANGE/text()"/></xsl:attribute>
            <xsl:attribute name="pctchange"><xsl:value-of select="PCTCHANGE/text()"/></xsl:attribute>
            <xsl:attribute name="daylow"><xsl:value-of select="DAYLOW/text()"/></xsl:attribute>
            <xsl:attribute name="dayhigh"><xsl:value-of select="DAYHIGH/text()"/></xsl:attribute>
            <xsl:attribute name="volume"><xsl:value-of select="VOLUME/text()"/></xsl:attribute>
            <xsl:attribute name="mktstatus"><xsl:value-of select="MKT_STATUS/text()"/></xsl:attribute>
        </xsl:element>
    </xsl:template>
    
    <xsl:template match="/rss">
    	<items>
            <xsl:apply-templates select="channel/item"/>
        </items> 
    </xsl:template>
 
     <xsl:template match="channel/item">
        <xsl:element name="item">
            <xsl:attribute name="title"><xsl:value-of select="title/text()"/></xsl:attribute>
            <xsl:attribute name="link"><xsl:value-of select="link/text()"/></xsl:attribute>
            <xsl:attribute name="description"><xsl:value-of select="description/text()"/></xsl:attribute>
            <xsl:attribute name="guid"><xsl:value-of select="guid/text()"/></xsl:attribute>
            <xsl:attribute name="pubdate"><xsl:value-of select="pubDate/text()"/></xsl:attribute>
        </xsl:element>
    </xsl:template>
</xsl:stylesheet>